/**
 * 
 */
package org.youisoft.summer.evaluator.operator.base;

import org.youisoft.summer.evaluator.operator.AbstractOperator;
import org.youisoft.summer.evaluator.operator.Operator;

/**
 * @author zijiang.jl
 *
 */
public class MapOperator<T extends Operator<?>> extends AbstractOperator<java.util.Map<T,T>> {


	public MapOperator(){
		this.setValue(new java.util.concurrent.ConcurrentHashMap<T, T>());
	}
	
	public MapOperator(java.util.Map<T,T> map){
		this.setValue(map);
	}
	
	
	public Operator<?> putOperator(T key,T value){
		this.value().put(key, value);
		return this;
	}
	
	public int size(){
		return this.value().size();
		
	}
}
